package com.zhangxu.microservice.system.web.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 角色资源权限关联响应
 */
@Data
@Schema(description = "角色资源权限关联响应")
public class RoleResourceResp {

    /**
     * 主键ID
     */
    @Schema(description = "主键ID", example = "1")
    private Long id;

    /**
     * 角色ID
     */
    @Schema(description = "角色ID", example = "1")
    private Long roleId;

    /**
     * 资源编码
     */
    @Schema(description = "资源编码", example = "USER_MANAGE")
    private String resourceCode;

    /**
     * 角色信息
     */
    @Schema(description = "角色信息")
    private RoleResp role;

    /**
     * 资源信息
     */
    @Schema(description = "资源信息")
    private ResourceResp resource;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}